package com.zdp.chat.entity.mongo;

import com.anwen.mongo.annotation.ID;
import com.anwen.mongo.annotation.collection.CollectionName;
import com.anwen.mongo.enums.IdTypeEnum;
import com.zdp.chat.enums.RoomTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

@CollectionName(value = "chat_room")
@Data
public class RoomDoc {

    @ID(type = IdTypeEnum.ASSIGN_ID)
    private Long id;

    /**
     * @see RoomTypeEnum
     */
    private Integer roomType;

    private String roomName;

    /**
     * 公告
     */
    private String roomNotice;

    private String roomPic;

    private LocalDateTime createTime;


}
